package com.s2u2m.training.ex_programmer.interface_segregation.bad;

import lombok.AllArgsConstructor;

/**
 * Rectangle only need area calculation
 */
@AllArgsConstructor
public class Rectangle implements Shape {
    private final Integer length;
    private final Integer width;

    @Override
    public Integer area() {
        return length * width;
    }

    @Override
    public void print() {

    }
}
